package com.syn.gmail.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.syn.common.utils.PageUtils;
import com.syn.gmail.product.entity.CategoryEntity;
import com.syn.gmail.product.vo.CatalogTwo;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author sunyn
 * @email 1416226125@qq.com
 * @date 2021-03-14 11:07:42
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);
    List<CategoryEntity> listWithTree();
    void removeMenuByIds(List<Long> asList);

    /**
     * 找到catelogId的完整路径；
     * [父/子/孙]
     * @param catelogId
     * @return
     */
    Long[] findCatelogPath(Long catelogId);

    void updateCascade(CategoryEntity category);

    List<CategoryEntity> getLevel1();

    Map<String, List<CatalogTwo>> getCataLog();
}

